home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_casm / jlvesa11.zip / JLFONT01.CPP < prev    next >
Text File  |  1995-11-22  |  477b  |  23 lines

  1. #include <stdio.h>
  2. #include "jlvesa.h"
  3.  
  4. extern JVFont *jlfont_font;
  5.  
  6. void JVFont_Colorize(int color)
  7. {
  8.    int a,b,c;
  9.    unsigned int offset;
  10.  
  11.    for(a=0;a<256;a++)
  12.    {
  13.       offset=jlfont_font->offset[a];
  14.       if(offset!=0)
  15.       {
  16.          b=jlfont_font->height*(*(jlfont_font->font_data+offset));
  17.          for(c=1;c<=b;c++)
  18.             if(*(jlfont_font->font_data+offset+c)!=0)
  19.                *(jlfont_font->font_data+offset+c)=color;
  20.       }
  21.    }
  22. }
  23.